package com.wsc.personalblog.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.Date;
@ApiModel(value = "留言消息类")
public class LeaveAMessage {
    @ApiModelProperty("留言id")
    private Integer id;
    @ApiModelProperty("留言消息")
    private String msg;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("父级留言id")
    private Integer superId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("留言发布时间")
    private LocalDateTime pubDate;
    @ApiModelProperty("留言图片文件")
    private String photoFile;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg == null ? null : msg.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSuperId() {
        return superId;
    }

    public void setSuperId(Integer superId) {
        this.superId = superId;
    }

    public LocalDateTime getPubDate() {
        return pubDate;
    }

    public void setPubDate(LocalDateTime pubDate) {
        this.pubDate = pubDate;
    }

    public void setPhotoFile(String photoFile) {
        this.photoFile = photoFile;
    }

    public String getPhotoFile() {
        return photoFile;
    }
}